
SRC := threadPoolClient.c
SRC += threadPoolServer.c
SRC += main.c

C_COMPILER=gcc
OBJECTS := $(SRC:.c=.o)

CFLAGS := -g -pthread -Wall

all: a.out

a.out: $(OBJECTS)
	@echo Building exe
	@$(C_COMPILER) $(CFLAGS) $(OBJECTS)
%.o:%.c
	@echo Building $^
	@$(C_COMPILER)	$(CFLAGS) -c $^ -o $@

clean:
	@rm -f $(OBJECTS) *.out core
